<?php


namespace App\Models;


use App\Engine\BaseModel;

class Nav extends BaseModel
{
    protected $table = 'navs';
    public $timestamps = false;
    protected $fillable = [
        'name',
        'icon',
        'type',
        'sort',
        'hidden',
        'value',
        'jump_type'
    ];

    public $with=["article"];

    public function article()
    {
        return $this->belongsTo("App\Models\Article","value","id");
    }
}
